- content_for :meta do
  %meta{:name => "Description", :content => "Jetty Rae is a singer and song writer from Charlevoix Michigan. Her music can be classified as both acoustic and folk with a touch of soul. Her music is rooted in love, depression, and faith and is laced with references to her experiences in Fiji, China, Hawaii, and many other places around the world."}
  %meta{:name => "Abstract", :content => "Jetty Rae is an independent folk and acoustic singer and song writer who plays the guitar."}
  %meta{:name => "Keywords", :content => "independent artist, singer, songwriter, musician, music, jetty rae, michigan, ann arbor, acoustic, folk, guitar"}
- content_for :title do
  = "- acoustic, solo guitarist and vocalist in Ann Arbor Michigan"
- content_for :page_description do
  %p Jetty Rae (not Jenny Ray or Jetty Ray) is a northern Michigan independent folk and acoustic solo musician whose guitar accompanied music greatly impacts those within earshot. Jetty Rea has lived in Hawaii, Fiji, China, and Colorado but now resides in Ann Arbor Michigan. You can hear the footsteps in here music like you can hear the soil in Elvis's.
%div.index_booking
  %p{:align => "center", :style => "margin-top: 5px"}
    Interested in booking a show or gig? Contact Rob of 
    %a{:href => "http://www.paulnsilasmedia.com/jettyrae", :title => "Paul N Silas Media"}Paul N Silas Media
    via
    %a{:href => "mailto:paulnsilasmedia@gmail.com", :title => "e-mail Rob"}Email
    or give him a call: (310) 809-2991.
    %form{:action => "https://www.paypal.com/cgi-bin/webscr", :method => "post"} 
      %input{:type => "hidden", :name => "cmd",                 :value => "_xclick"}
      %input{:type => "hidden", :name => "business",            :value => "treker@umich.edu"}
      %input{:type => "hidden", :name => "undefined_quantity",  :value => "1"}
      %input{:type => "hidden", :name => "item_name",           :value => "Pre-purchase Jetty Rae - Chasing of the Wind CD"}
      %input{:type => "hidden", :name => "item_number",         :value => "jettyrae"}
      %input{:type => "hidden", :name => "amount",              :value => "15.00"}
      %input{:type => "hidden", :name => "shipping",            :value => "5.00"}
      %input{:type => "hidden", :name => "return",              :value => "http://jettyrae.com"}
      %input{:type => "hidden", :name => "cancel_return",       :value => "http://jettyrae.com"}
      %input{:type => "hidden", :name => "no_note",             :value => "1"}
      %input{:type => "hidden", :name => "currency_code",       :value => "USD"}
      %input{:type => "hidden", :name => "lc",                  :value => "US"}
      %input{:type => "image",  :src => "/images/pre-release.jpg", :border => "0", :name => "submit", :alt => "Click here to pre-purchase new next CD!"}
%div.index_heading{:style => "text-align: center"}
  %img.heading{:src => "/images/headings/latest_blog_post.jpg", :title => "Jetty Rae's latest blog post", :alt => "Lastest Blog Post"}
- @blog_posts.each do |blog_post|
  %table.show_header_info{:class => "blog_post_index"}
    %tr
      %td.location
        %h1.show_location
          %a{:href => blog_post_url(blog_post), :title => blog_post.title}
            = blog_post.title
      %td.date
        %h2.show_date= blog_post.created_at.strftime("%B %o, %Y at %I:%M %p")
  %table.blog_post
    %tr
      %td.blog_post
        = truncate_html((blog_post.text), 250, "... [<a href='" + blog_post_url(blog_post) + "' title='" + blog_post.title + "'>Read More</a>]")
    %tr
      %td.blog_post_comments
        %hr
        %a{:href => blog_post_url(blog_post) + "#comments", :title => ("Comment on Jetty Rae's blog post " + blog_post.title)}
          = pluralize(blog_post.comments.count, "comment")
        |
        %a{:href => blog_post_url(blog_post) + "#newcomment", :title => ("Comment on Jetty Rae's blog post " + blog_post.title)} Comment on this post
        - if logged_in? && current_user.is_admin?
          |
          %a{:href => edit_blog_post_url(blog_post), :title => ("Edit this post: " + blog_post.title)} Edit
#clear_fix
%div.index_heading{:style => "text-align: center"}
  %img.heading{:src => "/images/headings/upcoming_shows.jpg", :title => "Upcoming Shows", :alt => "Upcoming Shows"}
%table.index_shows
  %tr
    %td.seperator{:colspan => 4}
      %table.filter_shows
        %tr
          %td.past
            %a{:href => (shows_url + "?display=previous")}past
          %td.all
            %a{:href => shows_url}all
  - @shows.each do |show|
    %tr{:style => "background-color: #{cycle("#ffffff", "#bffbad")}"}
      %td.date
        = show.start_time.strftime("%B %o")
      %td.time
        = show.start_time.strftime("%I:%M %p")
      %td.location
        %a{:href => show_url(show), :title => "Get more information about Jetty Rae's " + show.location + " gig"}= show.location
      %td.geographic_location
        = show.city + ", " + show.state
#clear_fix
%div.index_heading
  %img.heading{:src => "/images/headings/my_songs.jpg", :title => "Recently Added Songs", :alt => "Recently Added Songs"}
%table.index_songs
  - @songs.each do |song|
    %tr{:style => "background-color: #{cycle("#ffffff", "#e9e9e9")}"}
      %td.song_name
        %a{:href => song_url(song), :title => song.name, :alt => song.name}= song.name
      - if song.downloadable?
        %td.play_song
          %object{:height => "17", :width => "17", :data => "/assets/button/musicplayer.swf?&b_colors=80FF00,257b00,80FF00,FF0000&playlist_url=" + song_url(song) + ".xml", :type => "application/x-shockwave-flash"}
            %param{:value => "/assets/button/musicplayer.swf?playlist_url=" + song_url(song) + ".xml", :name => "movie"}
            %img{:height => "17", :width => "17", :alt => "play", :src => "/assets/noflash.gif"}
          %span.download_and_buy_song
            |
            %a{:href => song.public_filename, :title => "Download " + song.name}
              Download
            - if song.purchasable?
              or
              %a{:href => song.purchase_link, :title => "Buy " + song.name} Buy
#clear_fix
%div.index_heading
  %img.heading{:src => "/images/headings/my_photos.jpg", :title => "Recently Added Photos", :alt => "Recently Added Photos"}
- @photos.each do |photo|
  %table.photo_index
    %tr
      %td.photo_thumb_container
        %a{:href => photo_url(photo)}
          %img.photo_thumb{:src => photo.public_filename(:thumb), :title => (photo.caption ? photo.caption : photo.filename), :alt => (photo.caption ? photo.caption : photo.filename)}
#clear_fix
%div.index_heading
  %img.heading{:src => "/images/headings/my_videos.jpg", :title => "Recently Added Videos", :alt => "Recently Added Videos"}
- @videos.each do |video|
  %table.video_index
    %tr
      %td.video_thumb_container
        %a{:href => video_url(video)}
          %img.video_thumb{:src => video.thumbnail, :title => video.caption, :alt => video.caption}
#clear_fix
%div.index_heading
  %img.heading{:src => "/images/headings/recent_comments.jpg", :title => "Comments", :alt => "Comments"}
  %ol.comment_list
    - @comments.each do |comment|
      %li.comment
        - if logged_in? && current_user.is_admin?
          %div.delete_comment
            - form_for comment, comments_url, :html => {:method => :delete} do |form|
              = submit_tag "x"
        - if comment.for_video?
          %div.comment_video
            %a{:href => video_url(comment.video), :title => comment.video.name, :alt => comment.video.name}
              %img.video_thumb{:src => comment.video.thumbnail, :title => comment.video.name, :alt => comment.video.name}
        - if comment.for_photo?
          %div.comment_photo
            %a{:href => photo_url(comment.photo), :title => (comment.photo.caption ? comment.photo.caption : comment.photo.filename), :alt => (comment.photo.caption ? comment.photo.caption : comment.photo.filename)}
              %img.photo_thumb{:src => comment.photo.public_filename(:thumb), :title => (comment.photo.caption ? comment.photo.caption : comment.photo.filename), :alt => (comment.photo.caption ? comment.photo.caption : comment.photo.filename)}
        - if comment.for_song?
          %div.comment_song
            About the song "
            %a{:href => song_url(comment.song), :title => comment.song.name, :alt => comment.song.name}= comment.song.name
            "
            %object{:height => "17", :width => "17", :data => "/assets/button/musicplayer.swf?&b_colors=80FF00,257b00,80FF00,FF0000&playlist_url=" + song_url(comment.song) + ".xml", :type => "application/x-shockwave-flash"}
              %param{:value => "/assets/button/musicplayer.swf?playlist_url=" + song_url(comment.song) + ".xml", :name => "movie"}
              %img{:height => "17", :width => "17", :alt => "play", :src => "/assets/noflash.gif"}
        - if comment.for_show?
          %div.comment_show
            About the show "
            %a{:href => show_url(comment.show), :title => comment.show.location, :alt => comment.show.location}= comment.show.location
            "
        - if comment.for_blog_post?
          %div.comment_show
            About the blog post "
            %a{:href => blog_post_url(comment.blog_post), :title => comment.blog_post.title, :alt => comment.blog_post.title}= comment.blog_post.title
            "
        %a.comment_user{:href => user_url(comment.user)}= comment.user.login
        said:
        %p.comment_date= comment.created_at.strftime("%B %o at %I:%M %p")
        %p.comment_text= "\"#{comment.text}\""
#clear_fix
%div.index_heading
  %img.heading{:src => "/images/headings/a_naptime_in_heaven.jpg", :title => "A naptime in Heaven", :alt => "A naptime in Heaven"}
  %p
    Hi! My name is Jetty Rae and I'm a musician from Northern Michigan whose influences include Ella Fitzgerald, Eva Cassidy, Patty Griffin, Norah Jones, and Lauryn Hill. My set of influences coupled with my life experiences living in China, Hawaii, and Fiji, become apparent through my voice and lyrics rooted in depression, love, and faith. I'm a solo artist, just me and my guitar, so I hope you enjoy my music.